# ==========================
# 6 生产者 文件名不能改
# ==========================
from celery_tasks.main import app


@app.task
def send_sms_code_ccp(mobile,sms_code):
    # 4.让第三方 容联云-给手机号-发送短信
    from libs.yuntongxun.sms import CCP
    result = CCP().send_template_sms(mobile, [sms_code, 5], 1)
    print( sms_code)
    return result